/**
 \* Created with IntelliJ IDEA.
 \* @author: walter_long
 \* @date: 2019/10/23
 \* @filename: api_survey
 \* Description:
 \*/
import * as API from './'

export default {
    listSurveysByPage: params => API.GET('/survey/list', params),
    restartSurvey: params => API.POST(`/survey/restart`, params),
    stopSurvey: params => API.POST(`/survey/stop`, params),
    addSurvey: params => API.POST(`/survey/add`, params),
    exportExcel: params => API.download(`/survey/${params.id}/excel/download`)
}
